/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package BounderyPack;

import java.util.ArrayList;

/**
 *
 * @author mark
 */
public class Boundery {

    protected BounderyParams params;
    protected ArrayList<BounderyNodePair> NodeList;

    public Boundery() {
    }

    public Boundery(BounderyParams params, ArrayList<BounderyNodePair> NodeList) {
        this.params = params;
        this.NodeList = NodeList;
    }

    public ArrayList<BounderyNodePair> getNodeList() {
        return NodeList;
    }

    public void setNodeList(ArrayList<BounderyNodePair> NodeList) {
        this.NodeList = NodeList;
    }

    public BounderyParams getParams() {
        return params;
    }

    public void setParams(BounderyParams params) {
        this.params = params;
    }

    public boolean contains(int num){
        boolean res = false;
        for (int i = 0; i < NodeList.size(); i++) {
            BounderyNodePair bounderyNodePair = NodeList.get(i);
            res = bounderyNodePair.contains(num);
            if(res){break;}
        }
        return res;
    }


}
